<input type="hidden" name="resource.id" value="#(resource.id)">
<input type="hidden" name="resource.parentId" value="#(resource.parentId)">
<div class="layui-form-item">
	<div class="layui-inline">
		<label class="layui-form-label">上级资源</label>
		<div class="layui-input-inline">
			<input type="text" id="resSelect" lay-verify="required" name="resource.parentId" lay-filter="resSelect" placeholder="选择上级资源" class="layui-input" value="#(resource.parentId)">
		</div>
	</div>
	<div class="layui-inline">
		<label class="layui-form-label layui-bg-blue">类型</label>
		<div class="layui-input-inline">
		<select name="resource.type" lay-filter="" lay-verify="required">
			<option value="">-- 请选择 --</option>
		#dictList(parentKey="resource_type")
			#for(dict : dictList)
			<option value="#(dict.key)" #if(dict.key == resource.type) selected #end>#(dict.value)</option>
			#end
		#end
		</select>
		</div>
	</div>
</div>
<div class="layui-form-item">
	<div class="layui-inline">
		<label class="layui-form-label layui-bg-blue">名称</label>
		<div class="layui-input-inline">
			<input type="text" name="resource.name" lay-verify="required|name" placeholder="" autocomplete="off" class="layui-input" value="#(resource.name)">
		</div>
	</div>
	<div class="layui-inline">
		<label class="layui-form-label">图标</label>
		<div class="layui-input-inline">
			<input type="text" name="resource.icon" id="ID_iconPicker" lay-filter="LAY-iconPicker" class="layui-input" value="#(resource.icon)">
		</div>
	</div>
</div>

<div class="layui-form-item">
	<div class="layui-inline">
		<label class="layui-form-label">代码</label>
		<div class="layui-input-inline">
			<input type="text" name="resource.code" placeholder="" autocomplete="off" class="layui-input" value="#(resource.code)">
		</div>
	</div>
</div>

<div class="layui-form-item">
	<div class="layui-inline">
		<label class="layui-form-label layui-bg-blue">排序</label>
		<div class="layui-input-inline">
			<input type="text" name="resource.sortNum" lay-verify="required|number" autocomplete="off" class="layui-input" value="#(resource.sortNum)">
		</div>
	</div>
	<div class="layui-inline">
		<label class="layui-form-label layui-bg-blue">状态</label>
		<div class="layui-input-inline">
			<input type="radio" name="resource.status" value="on" title="启用" #if(resource.status == 'on' || resource.status == null) checked #end>
			<input type="radio" name="resource.status" value="off" title="禁用" #if(resource.status == 'off') checked #end>
		</div>
	</div>
</div>

<div class="layui-form-item layui-form-text">
	<label class="layui-form-label">描述</label>
	<div class="layui-input-block">
		<textarea placeholder="" name="resource.remark" class="layui-textarea">#(resource.remark)</textarea>
	</div>
</div>

<div class="layui-form-item">
	<div class="layui-block">
		<label class="layui-form-label">参数</label>
		<div class="layui-input-block">
			<input type="text" name="resource.param" placeholder="" autocomplete="off" class="layui-input" value="#(resource.param)">
		</div>
	</div>
</div>

<div class="layui-form-item layui-form-text">
	<label class="layui-form-label">值</label>
	<div class="layui-input-block">
		<textarea placeholder="每一行就是一个值" name="resource.value" class="layui-textarea">#(resource.value)</textarea>
	</div>
</div>
